package com.sba.core.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.sba.core.domain.Organization;

/**
 * 
 * @author feiliming
 *
 */
public interface OrganizationRepository extends BaseRepository<Organization> {
	Page<Organization> findByIsDelete(int isDelete, Pageable pageable);
	Page<Organization> findByNameLikeAndIsDelete(String name, int isDelete, Pageable pageable);
	
	Page<Organization> findByParentIdAndIsDelete(Long parentId, int isDelete, Pageable pageable);
	Page<Organization> findByParentIdAndNameLikeAndIsDelete(Long parentId, String name, int isDelete, Pageable pageable);
	
	Page<Organization> findByOrganizationTypeAndIsDelete(String OrganizationType, int isDelete, Pageable pageable);
	Page<Organization> findByOrganizationTypeAndNameLikeAndIsDelete(String organizationType, String name, int isDelete, Pageable pageable);
}
